<template>
	<view class="">
		<view v-for="(i, index) in list" @click="nav(i)">
			<item :i="i"></item>
		</view>
	</view>
</template>
<script>
	import item from './item/item.vue';
	export default {
		name: 'list',
		components: {
			item,
		},
		props: {
			list: {
				type: Array,
				default: () => [],
			},
		},
		data() {
			return {};
		},
		mounted() {},
		methods: {
			nav(item) {
				uni.navigateTo({
					url: '/pages/group/details/details?id=' + item.id,
				});
			},
		},
	};
</script>

<style lang="scss" scoped></style>
